package com.neusoft.neuiotms.dcam.fixed.dto;

import java.util.ArrayList;
import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.dto.AbstractAuditDTO;
import com.neusoft.neuiotms.dcam.common.dto.LocationDTO;
import com.neusoft.neuiotms.dcam.fixed.model.enums.InventoryDutyStatus;
import com.neusoft.neuiotms.dcam.fixed.model.enums.InventoryPlanStatus;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class InventoryDutyDTO extends AbstractAuditDTO {

    private static final long serialVersionUID = 1L;

    /** 任务名称 */
    private String name;

    /** 盘点任务编码 */
    private String code;

    /** 任务状态 */
    private InventoryDutyStatus status = InventoryDutyStatus.created;

    /** 关联位置 */
    List<LocationDTO> locations = new ArrayList<>();

    /** 位置ID */
    private List<String> locationCodes = new ArrayList<>();

    /** 关联类型 */
    List<AssetTypeDTO> assetTypes = new ArrayList<>();

    /** 类型ID */
    private List<String> assetTypeCodes = new ArrayList<>();

    /** 关联部门 */
    List<ConnectionRelationDTO> orgRelation = new ArrayList<>();

    /** 部门ID */
    private List<String> orgCodes = new ArrayList<>();

    /** 部门名称 */
    private List<String> orgNames = new ArrayList<>();

    /** 盘点人 */
    private Long userId;

    /** 盘点人姓名 */
    @Length(max = 255, message = "使用人不能超过{max}位")
    private String userName;

    /** 关联盘点结果 */
    List<InventoryResultDTO> dutyResults = new ArrayList<>();

    /** 计划ID */
    private Long inventoryPlanId;

    /** 计划名称 */
    private String inventoryPlanName;

    /** 计划号 */
    private String inventoryPlanCode;

    /** 计划状态 */
    private InventoryPlanStatus inventoryPlanStatus;
}
